package com.youmingxing.bean;

import org.json.JSONObject;

/**
 * @author evilyin(ChenZhixi)
 * @since 15/11/28
 */
public class SectionContent {
    public String img = "";
    public String name = "";
    public Action action;

    public SectionContent(JSONObject object) {
        if (object != null) {
            img = object.optString("img");
            name = object.optString("name");
            action = new Action(object.optJSONObject("action"));
        }

    }
}
